<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: opencv2/core/opengl.hpp File Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_09383d60383568eadd55fb8da7ff392b.html">opencv2</a></li><li class="navelem"><a class="el" href="../../dir_74897800f5c261f7ce57f88938dadca6.html">core</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">opengl.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../da/d74/ocl_8hpp.html">ocl.hpp</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d53/classcv_1_1ogl_1_1Arrays.html">cv::ogl::Arrays</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for OpenGL Client-Side Vertex arrays.  <a href="../../d6/d53/classcv_1_1ogl_1_1Arrays.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d68/classcv_1_1ogl_1_1Buffer.html">cv::ogl::Buffer</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Smart pointer for OpenGL buffer object with reference counting.  <a href="../../d3/d68/classcv_1_1ogl_1_1Buffer.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html">cv::ogl::Texture2D</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Smart pointer for OpenGL 2D texture memory with reference counting.  <a href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:d2/d75/namespacecv"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></td></tr>
<tr class="memdesc:d2/d75/namespacecv"><td class="mdescLeft">&#160;</td><td class="mdescRight">"black box" representation of the file storage associated with a file on disk. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:d1/d1a/namespacecv_1_1cuda"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d1a/namespacecv_1_1cuda.html">cv::cuda</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:df/d60/namespacecv_1_1ogl"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d60/namespacecv_1_1ogl.html">cv::ogl</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:d1/d36/namespacecv_1_1ogl_1_1ocl"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d36/namespacecv_1_1ogl_1_1ocl.html">cv::ogl::ocl</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gaf53526c205a92260f356fe6589460aab"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d3c/group__core__opengl.html#gaf53526c205a92260f356fe6589460aab">cv::ogl::RenderModes</a> { <br />
&#160;&#160;<a class="el" href="../../d2/d3c/group__core__opengl.html#ggaf53526c205a92260f356fe6589460aaba8b467f66c33c13df37f24aa3f1196f14">cv::ogl::POINTS</a> = 0x0000, 
<br />
&#160;&#160;<a class="el" href="../../d2/d3c/group__core__opengl.html#ggaf53526c205a92260f356fe6589460aaba8ea1de81114c3db43c9dfa96870367a0">cv::ogl::LINES</a> = 0x0001, 
<br />
&#160;&#160;<a class="el" href="../../d2/d3c/group__core__opengl.html#ggaf53526c205a92260f356fe6589460aabaf4d36edb6cf9011af8cf4015b5a61952">cv::ogl::LINE_LOOP</a> = 0x0002, 
<br />
&#160;&#160;<a class="el" href="../../d2/d3c/group__core__opengl.html#ggaf53526c205a92260f356fe6589460aaba7aa95cc95670cd6bb875d0092e3bf457">cv::ogl::LINE_STRIP</a> = 0x0003, 
<br />
&#160;&#160;<a class="el" href="../../d2/d3c/group__core__opengl.html#ggaf53526c205a92260f356fe6589460aabab2fc9178ebe34e531f1451751e673c7d">cv::ogl::TRIANGLES</a> = 0x0004, 
<br />
&#160;&#160;<a class="el" href="../../d2/d3c/group__core__opengl.html#ggaf53526c205a92260f356fe6589460aabae656afaa0987fa2f044e3fdc260aa140">cv::ogl::TRIANGLE_STRIP</a> = 0x0005, 
<br />
&#160;&#160;<a class="el" href="../../d2/d3c/group__core__opengl.html#ggaf53526c205a92260f356fe6589460aaba1778386fd1796017cf36965339b27cf7">cv::ogl::TRIANGLE_FAN</a> = 0x0006, 
<br />
&#160;&#160;<a class="el" href="../../d2/d3c/group__core__opengl.html#ggaf53526c205a92260f356fe6589460aaba6fe3c72a87b56e3f16bc1cf13fa9fc53">cv::ogl::QUADS</a> = 0x0007, 
<br />
&#160;&#160;<a class="el" href="../../d2/d3c/group__core__opengl.html#ggaf53526c205a92260f356fe6589460aabaa746cc01f0f606c16249ef41beb14eaa">cv::ogl::QUAD_STRIP</a> = 0x0008, 
<br />
&#160;&#160;<a class="el" href="../../d2/d3c/group__core__opengl.html#ggaf53526c205a92260f356fe6589460aaba8c8c07e1f038e9fe452b06fb80d15c10">cv::ogl::POLYGON</a> = 0x0009
<br />
 }<tr class="memdesc:gaf53526c205a92260f356fe6589460aab"><td class="mdescLeft">&#160;</td><td class="mdescRight">render mode  <a href="../../d2/d3c/group__core__opengl.html#gaf53526c205a92260f356fe6589460aab">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gaf53526c205a92260f356fe6589460aab"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gad2a559f1b93a89fa4936948f4c4c4bb2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d3c/group__core__opengl.html#gad2a559f1b93a89fa4936948f4c4c4bb2">cv::ogl::convertFromGLTexture2D</a> (const Texture2D &amp;texture, OutputArray dst)</td></tr>
<tr class="memdesc:gad2a559f1b93a89fa4936948f4c4c4bb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html" title="Smart pointer for OpenGL 2D texture memory with reference counting. ">Texture2D</a> object to OutputArray.  <a href="../../d2/d3c/group__core__opengl.html#gad2a559f1b93a89fa4936948f4c4c4bb2">More...</a><br /></td></tr>
<tr class="separator:gad2a559f1b93a89fa4936948f4c4c4bb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5ab4018bf271aecf8b7144e46ff363e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d3c/group__core__opengl.html#ga5ab4018bf271aecf8b7144e46ff363e9">cv::ogl::convertToGLTexture2D</a> (InputArray src, Texture2D &amp;texture)</td></tr>
<tr class="memdesc:ga5ab4018bf271aecf8b7144e46ff363e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts InputArray to <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html" title="Smart pointer for OpenGL 2D texture memory with reference counting. ">Texture2D</a> object.  <a href="../../d2/d3c/group__core__opengl.html#ga5ab4018bf271aecf8b7144e46ff363e9">More...</a><br /></td></tr>
<tr class="separator:ga5ab4018bf271aecf8b7144e46ff363e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41441ed4320bfc507d81c5e2cbc41233"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d36/namespacecv_1_1ogl_1_1ocl.html#a41441ed4320bfc507d81c5e2cbc41233">cv::ogl::ocl::initializeContextFromGL</a> ()</td></tr>
<tr class="memdesc:a41441ed4320bfc507d81c5e2cbc41233"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates OpenCL context from GL.  <a href="../../d1/d36/namespacecv_1_1ogl_1_1ocl.html#a41441ed4320bfc507d81c5e2cbc41233">More...</a><br /></td></tr>
<tr class="separator:a41441ed4320bfc507d81c5e2cbc41233"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga39ac62ef00a590b9021e233d1dcdc622"><td class="memItemLeft" align="right" valign="top">UMat&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d3c/group__core__opengl.html#ga39ac62ef00a590b9021e233d1dcdc622">cv::ogl::mapGLBuffer</a> (const Buffer &amp;buffer, AccessFlag accessFlags=ACCESS_READ|ACCESS_WRITE)</td></tr>
<tr class="memdesc:ga39ac62ef00a590b9021e233d1dcdc622"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maps <a class="el" href="../../d3/d68/classcv_1_1ogl_1_1Buffer.html" title="Smart pointer for OpenGL buffer object with reference counting. ">Buffer</a> object to process on CL side (convert to <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a>).  <a href="../../d2/d3c/group__core__opengl.html#ga39ac62ef00a590b9021e233d1dcdc622">More...</a><br /></td></tr>
<tr class="separator:ga39ac62ef00a590b9021e233d1dcdc622"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga64c7a6323ba1b978f2f9142a4bad5ca1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d3c/group__core__opengl.html#ga64c7a6323ba1b978f2f9142a4bad5ca1">cv::ogl::render</a> (const Texture2D &amp;tex, Rect_&lt; double &gt; wndRect=Rect_&lt; double &gt;(0.0, 0.0, 1.0, 1.0), Rect_&lt; double &gt; texRect=Rect_&lt; double &gt;(0.0, 0.0, 1.0, 1.0))</td></tr>
<tr class="memdesc:ga64c7a6323ba1b978f2f9142a4bad5ca1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render OpenGL texture or primitives.  <a href="../../d2/d3c/group__core__opengl.html#ga64c7a6323ba1b978f2f9142a4bad5ca1">More...</a><br /></td></tr>
<tr class="separator:ga64c7a6323ba1b978f2f9142a4bad5ca1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0f86b878c8b65fe081fd4f7ac1e62110"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d3c/group__core__opengl.html#ga0f86b878c8b65fe081fd4f7ac1e62110">cv::ogl::render</a> (const Arrays &amp;arr, int mode=POINTS, Scalar color=Scalar::all(255))</td></tr>
<tr class="separator:ga0f86b878c8b65fe081fd4f7ac1e62110"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga090c1f371c37a575dea8b5c6371aec70"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d3c/group__core__opengl.html#ga090c1f371c37a575dea8b5c6371aec70">cv::ogl::render</a> (const Arrays &amp;arr, InputArray indices, int mode=POINTS, Scalar color=Scalar::all(255))</td></tr>
<tr class="separator:ga090c1f371c37a575dea8b5c6371aec70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7da4b94fc78501f4239c132901387730"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d3c/group__core__opengl.html#ga7da4b94fc78501f4239c132901387730">cv::cuda::setGlDevice</a> (int device=0)</td></tr>
<tr class="memdesc:ga7da4b94fc78501f4239c132901387730"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a CUDA device and initializes it for the current thread with OpenGL interoperability.  <a href="../../d2/d3c/group__core__opengl.html#ga7da4b94fc78501f4239c132901387730">More...</a><br /></td></tr>
<tr class="separator:ga7da4b94fc78501f4239c132901387730"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7503c23aabed6fbe4f20b500bb921e71"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d3c/group__core__opengl.html#ga7503c23aabed6fbe4f20b500bb921e71">cv::ogl::unmapGLBuffer</a> (UMat &amp;u)</td></tr>
<tr class="memdesc:ga7503c23aabed6fbe4f20b500bb921e71"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unmaps <a class="el" href="../../d3/d68/classcv_1_1ogl_1_1Buffer.html" title="Smart pointer for OpenGL buffer object with reference counting. ">Buffer</a> object (releases <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a>, previously mapped from <a class="el" href="../../d3/d68/classcv_1_1ogl_1_1Buffer.html" title="Smart pointer for OpenGL buffer object with reference counting. ">Buffer</a>).  <a href="../../d2/d3c/group__core__opengl.html#ga7503c23aabed6fbe4f20b500bb921e71">More...</a><br /></td></tr>
<tr class="separator:ga7503c23aabed6fbe4f20b500bb921e71"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:33 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
